package cn.zxf.note.user.addition;

import cn.zxf.note.common.jpa.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import jakarta.persistence.Entity;
import jakarta.persistence.Table;

@Entity
@Table(name = "user_addition")
@DynamicInsert
@DynamicUpdate
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class UserAddition extends AbstractEntity {

    private Integer userId;

    /*** 用户级别，用于判断有哪些服务 {@link UserLevelEnum} */
    private Integer level;
    private Integer age;
    private String nick;

    public UserAddition id(Integer id) {
        super.setId(id);
        return this;
    }

}
